package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.WxrkdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface WxrkdService extends BaseService<WxrkdBean> {

	WxrkdBean getWxrkdBeanById(String id) throws Exception;
	
	void removeWxrkdBeanById(String id) throws Exception;
	
	void removeWxrkdBeanByIds(String ids) throws Exception;
	
	WxrkdBean saveWxrkdBean(WxrkdBean crm) throws Exception;
	
	WxrkdBean updateWxrkdBean(WxrkdBean crm) throws Exception;
	
	Page<WxrkdBean>  findWxrkdBeanByCond(WxrkdBean bean,
			Page<WxrkdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveWxrkdBeanExt(String sql) throws Exception;

	String findWxrkdBeanExtCreate(String tableName) throws Exception;

	String findWxrkdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findWxrkdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasWxrkdBeanExtData(String tableName, String id)
			throws Exception;
}